package com.boomsecret.pattern.observer.java;

import java.util.Observable;
import java.util.Observer;

/**
 * Created by wangjinliang on 2018/1/25.
 */
public class JavaWeixin implements Observer {
    private String name;

    public JavaWeixin(String name) {
        this.name = name;
    }

    @Override
    public void update(Observable o, Object arg) {
        System.out.println("name:" + this.name);
    }
}
